<?php $this->load->view('common/header'); ?>
<?php $this->load->view('common/header-common'); ?>
<style>
	
</style>
<section id="member-register" class="bg">
	<div class="container">
		<div class="row-fluid">
			<div class="span6 offset3" id="form-box">
				<form action="<?php echo site_url("user/register");?>" id="form-register" class="form-horizontal form-hor-small" method="POST">
					<fieldset>
						<legend>注册</legend>
						<div class="form-group">
							<h2 class="form-title">注册家园通行证</h2>
							<?php if (isset($error)) {?>
							<div class="alert">
		  						<a class="close" data-dismiss="alert">×</a>
		  						<strong>错误</strong> <?php echo $error;?>
							</div>
							<?php }?>
							<div class="control-group">
								<label for="reg-stuID" class="control-label">邮箱</label>
								<div class="controls">
									<input type="email" name="red_email" id="reg-email" class="input-medium" value="<?php echo set_value("red_email");?>" check-type="required mail" required-message="请输入邮箱" mail-message="邮箱格式不正确">
									<span class="help-inline"><?php echo form_error("red_email")?></span>
								</div>
							</div>
							<div class="control-group">
								<label for="reg-password" class="control-label">密码</label>
								<div class="controls">
									<input type="password" id="reg-password" class="input-medium" name="red_password" value="<?php echo set_value("red_password");?>" check-type="required" required-message="请输入密码" >
									<span class="help-inline"><?php echo form_error("red_password")?></span>
								</div>
							</div>
							<div class="control-group">
								<label for="reg-repassword" class="control-label">重复密码</label>
								<div class="controls">
									<input type="password" id="reg-repassword" class="input-medium" name="red_repassword" value="<?php echo set_value("red_repassword");?>" check-type="required" required-message="请输入密码" >
									<span class="help-inline"><?php echo form_error("red_repassword")?></span>
								</div>
							</div>
							<div class="control-group">
								<label for="reg-stuID" class="control-label">学(工)号</label>
								<div class="controls">
									<input type="text" id="reg-stuID" class="input-medium" name="stuID" value="<?php echo set_value("stuID");?>" check-type="required number" required-message="请输入学号" number-message="学号格式不正确">
									<span class="help-inline"><?php echo form_error("stuID")?></span>
								</div>
							</div>
							<div class="control-group">
								<label for="reg-realname" class="control-label">姓名</label>
								<div class="controls">
									<input type="text" id="reg-realname" class="input-medium" name="realname" value="<?php echo set_value("realname");?>" check-type="required" required-message="请输入您的姓名">
									<span class="help-inline"><?php echo form_error("realname");?></span>
								</div>
							</div>
							<div class="control-group">
								<label for="reg-birthday" class="control-label">出生日期</label>
								<div class="controls">
									<select name="year" size="1" style="width:80px;">
					                  	<option value="1960"<?php echo set_select("year", '1960');?>>1960</option>
					                  	<option value="1961"<?php echo set_select("year", '1961');?>>1961</option>
					                  	<option value="1962"<?php echo set_select("year", '1962');?>>1962</option>
					                  	<option value="1963"<?php echo set_select("year", '1963');?>>1963</option>
					                  	<option value="1964"<?php echo set_select("year", '1964');?>>1964</option>
					                  	<option value="1965"<?php echo set_select("year", '1965');?>>1965</option>
					                  	<option value="1966"<?php echo set_select("year", '1966');?>>1966</option>
					                  	<option value="1967"<?php echo set_select("year", '1967');?>>1967</option>
					                  	<option value="1968"<?php echo set_select("year", '1968');?>>1968</option>
					                  	<option value="1969"<?php echo set_select("year", '1969');?>>1969</option>
					                  	<option value="1970"<?php echo set_select("year", '1970');?>>1970</option>
					                  	<option value="1971"<?php echo set_select("year", '1971');?>>1971</option>
					                  	<option value="1972"<?php echo set_select("year", '1972');?>>1972</option>
					                  	<option value="1973"<?php echo set_select("year", '1973');?>>1973</option>
					                  	<option value="1974"<?php echo set_select("year", '1974');?>>1974</option>
					                  	<option value="1975"<?php echo set_select("year", '1975');?>>1975</option>
					                  	<option value="1976"<?php echo set_select("year", '1976');?>>1976</option>
					                  	<option value="1977"<?php echo set_select("year", '1977');?>>1977</option>
					                  	<option value="1978"<?php echo set_select("year", '1978');?>>1978</option>
					                  	<option value="1979"<?php echo set_select("year", '1979');?>>1979</option>
					                  	<option value="1980"<?php echo set_select("year", '1980');?>>1980</option>
					                  	<option value="1981"<?php echo set_select("year", '1981');?>>1981</option>
					                  	<option value="1982"<?php echo set_select("year", '1982');?>>1982</option>
					                  	<option value="1983"<?php echo set_select("year", '1983');?>>1983</option>
					                  	<option value="1984"<?php echo set_select("year", '1984');?>>1984</option>
					                  	<option value="1985"<?php echo set_select("year", '1985');?>>1985</option>
					                  	<option value="1986"<?php echo set_select("year", '1986');?>>1986</option>
					                  	<option value="1987"<?php echo set_select("year", '1987');?>>1987</option>
					                  	<option value="1988"<?php echo set_select("year", '1988');?>>1988</option>
					                  	<option value="1989"<?php echo set_select("year", '1989');?>>1989</option>
					                  	<option value="1990"<?php echo set_select("year", '1990');?>>1990</option>
					                  	<option value="1991"<?php echo set_select("year", '1991');?>>1991</option>
					                  	<option value="1992"<?php echo set_select("year", '1992');?>>1992</option>
					                  	<option value="1993"<?php echo set_select("year", '1993');?>>1993</option>
					                  	<option value="1994"<?php echo set_select("year", '1994', TRUE);?>>1994</option>
					                  	<option value="1995"<?php echo set_select("year", '1995');?>>1995</option>
									  	<option value="1996"<?php echo set_select("year", '1996');?>>1996</option>
									  	<option value="1997"<?php echo set_select("year", '1997');?>>1997</option>
					                </select>
					                <span>年</span>
					                <select name="month" size="1" style="width:60px;">
					                  	<option value="01"<?php echo set_select("month", '01', TRUE);?>>1</option>
					                  	<option value="02"<?php echo set_select("month", '02');?>>2</option>
					                  	<option value="03"<?php echo set_select("month", '03');?>>3</option>
					                  	<option value="04"<?php echo set_select("month", '04');?>>4</option>
					                  	<option value="05"<?php echo set_select("month", '05');?>>5</option>
					                  	<option value="06"<?php echo set_select("month", '06');?>>6</option>
					                  	<option value="07"<?php echo set_select("month", '07');?>>7</option>
					                  	<option value="08"<?php echo set_select("month", '08');?>>8</option>
					                  	<option value="09"<?php echo set_select("month", '09');?>>9</option>
					                  	<option value="10"<?php echo set_select("month", '10');?>>10</option>
					                  	<option value="11"<?php echo set_select("month", '11');?>>11</option>
					                  	<option value="12"<?php echo set_select("month", '12');?>>12</option>
					                </select>
					                <span>月</span>
					                <select name="day" size="1" style="width:60px;">
					                  	<option value="01"<?php echo set_select("day", '01', TRUE);?>>1</option>
					                  	<option value="02"<?php echo set_select("day", '02');?>>2</option>
					                  	<option value="03"<?php echo set_select("day", '03');?>>3</option>
					                  	<option value="04"<?php echo set_select("day", '04');?>>4</option>
					                  	<option value="05"<?php echo set_select("day", '05');?>>5</option>
					                  	<option value="06"<?php echo set_select("day", '06');?>>6</option>
					                  	<option value="07"<?php echo set_select("day", '07');?>>7</option>
					                  	<option value="08"<?php echo set_select("day", '08');?>>8</option>
					                  	<option value="09"<?php echo set_select("day", '09');?>>9</option>
					                  	<option value="10"<?php echo set_select("day", '10');?>>10</option>
					                  	<option value="11"<?php echo set_select("day", '11');?>>11</option>
					                  	<option value="12"<?php echo set_select("day", '12');?>>12</option>
					                  	<option value="13"<?php echo set_select("day", '13');?>>13</option>
					                  	<option value="14"<?php echo set_select("day", '14');?>>14</option>
										<option value="15"<?php echo set_select("day", '15');?>>15</option>
										<option value="16"<?php echo set_select("day", '16');?>>16</option>
										<option value="17"<?php echo set_select("day", '17');?>>17</option>
										<option value="18"<?php echo set_select("day", '18');?>>18</option>
										<option value="19"<?php echo set_select("day", '19');?>>19</option>
										<option value="20"<?php echo set_select("day", '20');?>>20</option>
										<option value="21"<?php echo set_select("day", '21');?>>21</option>
										<option value="22"<?php echo set_select("day", '22');?>>22</option>
										<option value="23"<?php echo set_select("day", '23');?>>23</option>
										<option value="24"<?php echo set_select("day", '24');?>>24</option>
										<option value="25"<?php echo set_select("day", '25');?>>25</option>
										<option value="26"<?php echo set_select("day", '26');?>>26</option>
										<option value="27"<?php echo set_select("day", '27');?>>27</option>
										<option value="28"<?php echo set_select("day", '28');?>>28</option>
										<option value="29"<?php echo set_select("day", '29');?>>29</option>
										<option value="30"<?php echo set_select("day", '30');?>>30</option>
										<option value="31"<?php echo set_select("day", '31');?>>31</option>
					                </select
					                <span>日</span> </p>

									<span class="help-inline"><?php echo form_error("birthday");?></span>
								</div>
							</div>
							<div class="form-actions">
								<button type="submit" class="btn btn-primary">注册</button>
								<a href="<?php echo site_url("/user/login");?>">返回登录</a>
							</div>
						</div>
					</fieldset>

					</form>
			</div>
		</div>
	</div>
</section>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/bootstrapJS/bootstrap-validation.js"></script>
<script type="text/javascript" src="<?php echo $this->config->item('public_path');?>js/register.js"></script>
<script type="text/javascript">
	$(window).load(function(){
		$('#form-register').validation();
	});
</script>
<?php $this->load->view('common/footer'); ?>